package com.hh.releasenode.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hh.releasenode.dto.SysUserDTO;
import com.hh.releasenode.entity.SysUserEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

/**
 * @ClassName SysUserDao
 * @Description TODO
 * @Author KunxianLi
 * Date 2020/6/9 16:12
 * Version 1.0
 **/
@Mapper
public interface SysUserDao extends BaseMapper<SysUserEntity> {

    SysUserEntity findByUserName(String userName);

    SysUserEntity findByMobile(String mobile);

    Page<SysUserDTO> getSysUserPage(Page<SysUserDTO> page, Map<String,Object> params);
}
